package com.vhall.component.service.lottery.common;

/**
 * 常量类
 *
 * @author zhangtao
 */
public final class Consts {

    private Consts() {
        throw new IllegalStateException("Utility class");
    }

    /**
     * 抽奖规则--指定列表随机
     */
    public static final int LOTTERY_RULE_LIVE = 1;
    /**
     * 抽奖规则--自定义列表随机
     */
    public static final int LOTTERY_RULE_CUSTOM = 2;

    public static final int DELETED = 1;
    public static final int NOT_DELETED = 0;

    /**
     * 抽奖已开始
     */
    public static final int LOTTERY_STATUS_BEGIN = 0;
    /**
     * 抽奖已结束
     */
    public static final int LOTTERY_STATUS_END = 1;
    /**
     * 不允许重复中奖
     */
    public static final int REPEAT_LOTTERY_NOT_ALLOW = 1;
    /**
     * 允许重复中奖
     */
    public static final int REPEAT_LOTTERY_ALLOW = 0;


    public static final String KEY_SAME_SOURCE_USER = "lottery:v4:same_source_users:";

    public static final String KEY_LOTTERY_USER = "lottery:v4:users:";

    public static final String KEY_LOTTERY_RANGE_ACCOUNTS = "lottery:v4:range:accounts:";
    public static final String KEY_LOTTERY_RANGE_IMPORT = "lottery:v4:range:import:";

    /**
     * 抽奖规则(标题)
     */
    public static final String KEY_LOTTERY_RULE_TEXT = "lottery:v4:rule:text:";

    /**
     * 抽奖json信息地址
     */
    public static final String LOTTERY_WINNERS_JSON_URL = "lottery:winners:json:url:";
    /**
     * 符合条件的抽奖用户范围 自定义导入用户
     */
    public static final String LOTTERY_RANGE_IMPORT = "lottery:range:import:";

    /**
     * 抽奖信息收集
     */
    public static final String LOTTERY_EXTENSION = "lottery:extension:";

    /**
     * 抽奖中奖用户记录目录
     */
    public static final String WINNERS_NOTE_DIR = "lottery/lottery_winners/";

    public static final String LOTTERY_ADD_LOCK = "lottery:add:lock:";

    /**
     * 抽奖用户池记录目录
     */
    public static final String USER_NOTE_DIR = "lottery/lottery_user/";

    /**
     * 1-排除已中奖用户 0-不排除已中奖用户
     */
    public static final Integer LOTTERY_EXCLUDE_WINNINGED = 0;
    public static final Integer LOTTERY_NOEXCLUDE_WINNINGED = 1;


}
